home *** CD-ROM | disk | FTP | other *** search
/ Skunkware 5 / Skunkware 5.iso / src / Games / flying-6.11 / rgb.h < prev    next >
Encoding:
C/C++ Source or Header  |  1995-06-30  |  370 b   |  23 lines

  1. #ifndef _rgb_h
  2. #define _rgb_h
  3.  
  4. class RGBColor {
  5.     public:
  6.         int SetColor( const char *name );
  7.  
  8.         RGBColor()                            { red=green=blue = 0; }
  9.         RGBColor(int r, int g, int b)    { red=r; green=g; blue=b; }
  10.         RGBColor( const char *name )    { SetColor(name); }
  11.  
  12.         ~RGBColor()        {}
  13.  
  14.         int    red;
  15.         int    green;
  16.         int    blue;
  17.  
  18.     private:
  19.         int SetInternalColor( const char *name );
  20. };
  21.  
  22. #endif
  23.